package com.imooc.utils;

import java.util.Random;

/**
 * Created by Administrator on 2019/3/28.
 * 生成一个key
 */
public class KeyUtil {

    public static synchronized String genUniqueKey() {
        Random random = new Random();
        Integer number = random.nextInt(900000) + 100000;
        return System.currentTimeMillis()+String.valueOf(number);
    }
}
